From: kfraser@localhost.localdomain Date: Fri, 14 Sep 2007 13:36:54 +0000 (+0100) Subject: Let Xen cmdline boolean options be specified as "=0", "=1", "=false", "=true". X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14937^2~89 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=8685a5cb189a3ab10b857c5657b84cd1cd24ced9;p=xen.git Let Xen cmdline boolean options be specified as "=0", "=1", "=false", "=true". Signed-off-by: Keir Fraser --- diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 9bfba6b949..034ff211d3 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -80,7 +80,10 @@ void cmdline_parse(char *cmdline) break; case OPT_BOOL: case OPT_INVBOOL: - if ( !strcmp("no", optval) || !strcmp("off", optval) ) + if ( !strcmp("no", optval) || + !strcmp("off", optval) || + !strcmp("false", optval) || + !strcmp("0", optval) ) bool_assert = !bool_assert; if ( param->type == OPT_INVBOOL ) bool_assert = !bool_assert;